import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Project } from './project.entity';
import { ProjectService } from './project.service';
import { ProjectController } from './project.controller';
import { ProjectShare } from './project-share.entity';
import { ProjectShareService } from './project-share.service';
import { ProjectShareController } from './project-share.controller';
import { UserModule } from '../user/user.module';
import { FormConfig } from '../form-config/form-config.entity';
import { FieldType } from '../form-config/field-type.entity';

@Module({
  imports: [TypeOrmModule.forFeature([Project, ProjectShare, FormConfig, FieldType]), UserModule],
  providers: [ProjectService, ProjectShareService],
  controllers: [ProjectController, ProjectShareController],
  exports: [ProjectService, ProjectShareService],
})
export class ProjectModule {}